import 'package:flutter/material.dart';

/// @author jltxseo
///         Created by junlintianxia on 2020/04/22.

class Echo extends StatelessWidget {
  final String text;
  final Color bgColor;

  const Echo({
    super.key,
    required this.text,
    this.bgColor = Colors.green,
  });

  @override
  Widget build(BuildContext context) {
    return Center(
      child: Container(
        color: bgColor,
        child: Text(text),
      ),
    );
  }
}
